﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TA.DotNetUtils
{
	public static class DateTimeEx
	{
		public static bool TryParse(string s)
		{
			DateTime dt;
			return DateTime.TryParse(s, out dt);
		}
		public static DateTime? Parse(string s)
		{
			DateTime dt;
			if (DateTime.TryParse(s, out dt))
				return dt;
			return null;
		}
	}
}
